#include "Barrel.h"

Barrel::Barrel(double _x, double _y):
PhysicObject(b2_dynamicBody, _x, _y)
{
	b2CircleShape shape;
	shape.m_radius = .5;
	/*b2PolygonShape shape;
	shape.SetAsBox(0.5, 0.5);*/
	width = 1 * Config::PHYSIC_SCALE;
	height = 1 * Config::PHYSIC_SCALE;

	b2FixtureDef fix;
	fix.density = 0.7;
	fix.friction = 0.7;
	fix.restitution = 0.2;
	fix.shape = &shape;

	addFixture(&fix);

	body->SetLinearDamping(1);
	body->SetAngularDamping(2);

	//this->tag = "BLURRED";
}

Barrel::~Barrel(void)
{
}

void Barrel::update()
{
}
